<div class="row">
  <div class="col-md-12">
    <div class="panel">
      <div class="panel-body">
        <%= simple_form_for @object, html: { class: "form-horizontal", role: "form"} do |f| %>

            <%= f.input :description %>

            <%= f.input :link %>

          <hr>
          <div class="form-actions">
            <%= f.submit 'Salvar', class: "btn btn-success" %>
            <%= link_to 'Apagar', @object, method: :delete, data: {confirm: 'Tem certeza que deseja remover esse registro?'}, class: 'btn btn-danger' if f.object.persisted? %>
            <%= link_to 'Cancelar', videos_path, class: 'btn btn-primary' %>
          </div>
        <% end %>
      </div>
    </div>

  </div>
</div>
